package com.lebang.medicalInquiry.constant;

/**
 * redis key
 *
 * @version V1.0
 * @author: zpc
 * @date:
 */
public enum RedisKeyEnum {

    //用户token
    lock("lock:", "锁", 2),

    user_tokens("user_tokens:", "用户登录存储", 604800),

    login_lock("login_code_lock:", "登录请求验证码锁", 300),
    login_code("login_code:", "登录请求验证码", 300),
    register_lock("login_code_lock:", "注销验证码锁", 300),
    register_code("login_code:", "注销请求验证码", 300),
    gpt_file_parse("gpt_file_parse_list", "gpt文件解析队列", 300),
    gpt_file_ask("gpt_file_ask:", "gpt问题", 300),

    article_classify_list("article_classify_list:", "文章分类标签列表", 300),

    off_line_notice("off_line_notice:", "离线消息队列", 300),

    off_line_notice_change_list("off_line_notice_change_list:", "是否要转为离线消息的队列", 60),

    off_line_notice_expire("off_line_notice_expire:", "离线消息转化的过期时间监听", 60),
    questing("questing", "gpt问题", 300),
    questing_ask("questing_ask:", "gpt问题", 300);


    private String name;

    private String des;

    private long timeSeconds;


    RedisKeyEnum(String name, String des, long timeSeconds) {
        this.name = name;
        this.des = des;
        this.timeSeconds = timeSeconds;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public long getTimeSeconds() {
        return timeSeconds;
    }

    public void setTimeSeconds(long timeSeconds) {
        this.timeSeconds = timeSeconds;
    }


}
